home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / Peon / PeonSDK-Win32-1.0.0.exe / {app} / PeonMain / source / PeonMain.cpp < prev    next >
C/C++ Source or Header  |  2005-08-13  |  760b  |  37 lines

  1. // PeonMain.cpp : Defines the entry point for the DLL application.
  2. //
  3. #include "PeonMain.h"
  4. BOOL APIENTRY DllMain( HANDLE hModule, 
  5.                        DWORD  ul_reason_for_call, 
  6.                        LPVOID lpReserved
  7.                      )
  8. {
  9.     switch (ul_reason_for_call)
  10.     {
  11.     case DLL_PROCESS_ATTACH:
  12.     case DLL_THREAD_ATTACH:
  13.     case DLL_THREAD_DETACH:
  14.     case DLL_PROCESS_DETACH:
  15.         break;
  16.     }
  17.     return TRUE;
  18. }
  19.  
  20. /*
  21. // This is an example of an exported variable
  22. PEONMAIN_API int nPeonMain=0;
  23.  
  24. // This is an example of an exported function.
  25. PEONMAIN_API int fnPeonMain(void)
  26. {
  27.     return 42;
  28. }
  29.  
  30. // This is the constructor of a class that has been exported.
  31. // see PeonMain.h for the class definition
  32. CPeonMain::CPeonMain()
  33.     return; 
  34. }
  35. */
  36.